home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / Tutorial / Cookbook / 01c.hello.scroll.Ch6Ex4 / MyObject.m < prev    next >
Text File  |  1995-06-12  |  420b  |  28 lines

  1.  
  2. /* Generated by Interface Builder */
  3.  
  4. #import "MyObject.h"
  5. #import <appkit/Control.h>
  6. #import <appkit/ScrollView.h>
  7. #import <appkit/Text.h>
  8. #import <strings.h>
  9.  
  10. @implementation MyObject
  11.  
  12. - setTextOutlet:anObject
  13. {
  14.     textOutlet = anObject;
  15.     return self;
  16. }
  17.  
  18. - buttonAction:sender
  19. {
  20.     strcat(myString, "hello, world\n");
  21.     scrollText = [textOutlet docView];
  22.     [scrollText setText:myString];
  23.     return self;
  24. }
  25.  
  26.  
  27. @end
  28.